package leetcode.code1337;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution1337 implements IDebug {

	abstract public int[] kWeakestRows(int[][] mat, int k);

	@Override
	public void debug1() {
		String string = "[[1,1,0,0,0],[1,1,1,1,0],[1,0,0,0,0],[1,1,0,0,0],[1,1,1,1,1]]";
		int mat[][] = HelpDebug.str2array1(string);
		int k = 3;
		int[] result = this.kWeakestRows(mat, k);
		int[] except = HelpDebug.str2array3("[2,0,3]");
		HelpDebug.printObject(except);
		HelpDebug.printObject(result);
	}

	@Override
	public void debug2() {
		String string = "[[1,0,0,0],[1,1,1,1],[1,0,0,0],[1,0,0,0]]";
		int mat[][] = HelpDebug.str2array1(string);
		int k = 2;
		int[] result = this.kWeakestRows(mat, k);
		int[] except = HelpDebug.str2array3("[0,2]");
		HelpDebug.printObject(except);
		HelpDebug.printObject(result);
	}

	@Override
	public void debug3() {
		// TODO Auto-generated method stub

	}

	@Override
	public void debug4() {
		// TODO Auto-generated method stub

	}

}
